package com.example.service.impl;

import com.example.entity.po.Honor;
import com.example.mapper.HonorMapper;
import com.example.service.HonorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HonorServiceImpl implements HonorService {

    @Autowired
    private HonorMapper honorMapper;

    @Override
    public List<Honor> queryHonor() {
        return honorMapper.queryHonor();
    }

    @Override
    public int addHonor(Honor honor) {
        return honorMapper.addHonor(honor);
    }

    @Override
    public int deleteHonor(int honorId) {
        return honorMapper.deleteHonor(honorId);
    }

    @Override
    public int updateHonor(Honor honor) {
        return honorMapper.updateHonor(honor);
    }

    @Override
    public List<Honor> fuzzyHonor(String honorContent) {
        return honorMapper.fuzzyHonor(honorContent);
    }
}
